from likeshop_api_project.base.mybase import Tools


# 商品分类
class commodity_classification_model(Tools):
    path = '/api/goods_category/lists'

    def commodity_classification_action(self,client):
        commodity_classification_data = {
            "client": client,
        }
        commodity_classification = self.huihua.get(url=self.hosturl+self.path, params=commodity_classification_data)
        return commodity_classification.json()

if __name__ == '__main__':
    import requests

    s = requests.session()
    commodity_classification = commodity_classification_model(huihua=s)
    msg = commodity_classification.commodity_classification_action(client='')
    print(msg)



